using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._TraceNetworkTools
{
    /// <summary>
    /// <para>Add Network Attribute</para>
    /// <para>Adds a network attribute to a trace network.</para>
    /// <para>将网络属性添加到追踪网络。</para>
    /// </summary>    
    [DisplayName("Add Network Attribute")]
    public class AddNetworkAttribute : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public AddNetworkAttribute()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_trace_network">
        /// <para>Input Trace Network</para>
        /// <para>The input trace network to which the network attribute will be added.</para>
        /// <para>将向其添加网络属性的输入追踪网络。</para>
        /// </param>
        /// <param name="_attribute_name">
        /// <para>Attribute Name</para>
        /// <para>The name of the network attribute to add to the trace network.</para>
        /// <para>要添加到追踪网络的网络属性的名称。</para>
        /// </param>
        /// <param name="_attribute_type">
        /// <para>Attribute Type</para>
        /// <para><xdoc>
        ///   <para>Specifies the data type of the network attribute.</para>
        ///   <bulletList>
        ///     <bullet_item>Short (small integer)—The field is short integer type.</bullet_item><para/>
        ///     <bullet_item>Long (large integer)—The field is long integer type.</bullet_item><para/>
        ///     <bullet_item>Double (double precision)—The field is double precision type.</bullet_item><para/>
        ///     <bullet_item>Date—The field is date type.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定网络属性的数据类型。</para>
        ///   <bulletList>
        ///     <bullet_item>短（小整数）- 字段为短整数类型。</bullet_item><para/>
        ///     <bullet_item>长整型（大整型）- 字段为长整型。</bullet_item><para/>
        ///     <bullet_item>双精度（双精度）- 字段为双精度类型。</bullet_item><para/>
        ///     <bullet_item>日期 - 字段为日期类型。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// </param>
        public AddNetworkAttribute(object _in_trace_network, object _attribute_name, _attribute_type_value? _attribute_type)
        {
            this._in_trace_network = _in_trace_network;
            this._attribute_name = _attribute_name;
            this._attribute_type = _attribute_type;
        }
        public override string ToolboxName => "Trace Network Tools";

        public override string ToolName => "Add Network Attribute";

        public override string CallName => "tn.AddNetworkAttribute";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_trace_network, _attribute_name, _attribute_type.GetGPValue(), _is_nullable.GetGPValue(), _out_trace_network];

        /// <summary>
        /// <para>Input Trace Network</para>
        /// <para>The input trace network to which the network attribute will be added.</para>
        /// <para>将向其添加网络属性的输入追踪网络。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Trace Network")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_trace_network { get; set; }


        /// <summary>
        /// <para>Attribute Name</para>
        /// <para>The name of the network attribute to add to the trace network.</para>
        /// <para>要添加到追踪网络的网络属性的名称。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Attribute Name")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _attribute_name { get; set; }


        /// <summary>
        /// <para>Attribute Type</para>
        /// <para><xdoc>
        ///   <para>Specifies the data type of the network attribute.</para>
        ///   <bulletList>
        ///     <bullet_item>Short (small integer)—The field is short integer type.</bullet_item><para/>
        ///     <bullet_item>Long (large integer)—The field is long integer type.</bullet_item><para/>
        ///     <bullet_item>Double (double precision)—The field is double precision type.</bullet_item><para/>
        ///     <bullet_item>Date—The field is date type.</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para><xdoc>
        ///   <para>指定网络属性的数据类型。</para>
        ///   <bulletList>
        ///     <bullet_item>短（小整数）- 字段为短整数类型。</bullet_item><para/>
        ///     <bullet_item>长整型（大整型）- 字段为长整型。</bullet_item><para/>
        ///     <bullet_item>双精度（双精度）- 字段为双精度类型。</bullet_item><para/>
        ///     <bullet_item>日期 - 字段为日期类型。</bullet_item><para/>
        ///   </bulletList>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Attribute Type")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public _attribute_type_value? _attribute_type { get; set; }

        public enum _attribute_type_value
        {
            /// <summary>
            /// <para>Short (small integer)</para>
            /// <para>Short (small integer)—The field is short integer type.</para>
            /// <para>短（小整数）- 字段为短整数类型。</para>
            /// </summary>
            [Description("Short (small integer)")]
            [GPEnumValue("SHORT")]
            _SHORT,

            /// <summary>
            /// <para>Long (large integer)</para>
            /// <para>Long (large integer)—The field is long integer type.</para>
            /// <para>长整型（大整型）- 字段为长整型。</para>
            /// </summary>
            [Description("Long (large integer)")]
            [GPEnumValue("LONG")]
            _LONG,

            /// <summary>
            /// <para>Double (double precision)</para>
            /// <para>Double (double precision)—The field is double precision type.</para>
            /// <para>双精度（双精度）- 字段为双精度类型。</para>
            /// </summary>
            [Description("Double (double precision)")]
            [GPEnumValue("DOUBLE")]
            _DOUBLE,

            /// <summary>
            /// <para>Date</para>
            /// <para>Date—The field is date type.</para>
            /// <para>日期 - 字段为日期类型。</para>
            /// </summary>
            [Description("Date")]
            [GPEnumValue("DATE")]
            _DATE,

        }

        /// <summary>
        /// <para>Nullable</para>
        /// <para><xdoc>
        ///   <para>Specifies whether the network attribute will support null values.
        ///   <bulletList>
        ///     <bullet_item>Checked—The network attribute will allow support values.  </bullet_item><para/>
        ///     <bullet_item>Unchecked—The network attribute will not allow support values. This is the default.  </bullet_item><para/>
        ///   </bulletList>
        ///   </para>
        /// </xdoc></para>
        /// <para><xdoc>
        /// <para>指定网络属性是否支持 null 值。
        ///   <bulletList>
        ///     <bullet_item>选中 - 网络属性将允许支持值。</bullet_item><para/>
        ///     <bullet_item>未选中 - 网络属性不允许支持值。这是默认设置。 </bullet_item><para/>
        ///   </bulletList>
        ///   </para>
        /// </xdoc></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Nullable")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public _is_nullable_value _is_nullable { get; set; } = _is_nullable_value._false;

        public enum _is_nullable_value
        {
            /// <summary>
            /// <para>NULLABLE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("NULLABLE")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>NOT_NULLABLE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("NOT_NULLABLE")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Updated Trace Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Trace Network")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_trace_network { get; set; }


        public AddNetworkAttribute SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}